/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

/* 标题样式 */
h1, h2, h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

/* 导航栏样式 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.site-header nav ul {
    display: flex;
    list-style: none;
}

.site-header nav ul li {
    margin-left: 20px;
}

.site-header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-header nav ul li a:hover {
    color: #3498db;
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero-section h2::after {
    background-color: white;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 关于区域样式 */
.about-section {
    padding: 80px 0;
    background-color: white;
}

/* 服务区域样式 */
.services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 联系区域样式 */
.contact-section {
    padding: 80px 0;
    background-color: white;
}

#contact-form {
    max-width: 600px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* 页脚样式 */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        padding: 15px;
    }

    .site-header nav ul {
        margin-top: 15px;
    }

    .site-header nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .hero-section h2 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}